import { createRouter } from "vue-router";

const routes = [
    {
        path: "/",
        component: () => import("../views/home.vue"),
    },
    {
        path: "/about",
        component: () => import("../views/about.vue"),
    },
];

export default function (history) {
    return createRouter({
        history, // 使用传递过来的参数 作为路由模式 
        routes
    })
}